package org.jsrml.core.base.qo;

import org.jsrml.common.persistence.BaseQO;
import org.jsrml.common.persistence.query.QueryCondition;
import org.jsrml.common.persistence.query.QueryConditionType;
import org.jsrml.common.persistence.query.QueryConfig;

@QueryConfig(daoBeanId = "areaService")
@SuppressWarnings("serial")
public class AreaQO extends BaseQO<String> {

	@QueryCondition(name = "city", type = QueryConditionType.FETCH_EAGER)
	private Boolean fetchCity;

	@QueryCondition(name = "city", type = QueryConditionType.LEFT_JOIN)
	private CityQO cityQO;

	@QueryCondition(name = "name", type = QueryConditionType.LIKE_ANYWHERE)
	private String name;

	@QueryCondition(name = "sort", type = QueryConditionType.ORDER)
	private Integer orderBySort;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getFetchCity() {
		return fetchCity;
	}

	public void setFetchCity(Boolean fetchCity) {
		this.fetchCity = fetchCity;
	}

	public CityQO getCityQO() {
		return cityQO;
	}

	public void setCityQO(CityQO cityQO) {
		this.cityQO = cityQO;
	}

	public Integer getOrderBySort() {
		return orderBySort;
	}

	public void setOrderBySort(Integer orderBySort) {
		this.orderBySort = orderBySort;
	}

}
